'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE, TEXT } = app.Sequelize;
  const Article_list = app.model.define('article_list', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    user_id: INTEGER,
    author: STRING(50), 
    title: STRING(255), 
    type: STRING(255), 
    introduce: TEXT, 
    hot: INTEGER, 
    favour: INTEGER, 
    visible: INTEGER, 
    create_date: DATE,
    update_date: DATE, 
  }, {
      freezeTableName: true,
      tableName: 'article_list',
      timestamps: false,
    });

  return Article_list;
};
